package api_.string_;

public class StartWithDemo
{
    public static void main(String[] args)
    {
        String string = new String("https://www.baidu.com");
        boolean isWebAddress = string.startsWith("https://");
        String dogImgPath = "D://image//dog.png";
        boolean isPicture = dogImgPath.endsWith(".png")|| dogImgPath.endsWith(".jpg");
        System.out.println(isWebAddress);
        System.out.println(isPicture);
    }
}
